package com.qyhl.module_practice.score.mine;


import com.qyhl.webtv.commonlib.entity.UpTokenBean;
import com.qyhl.webtv.commonlib.entity.civilized.PracticeVolunteerDetailBean;

public class PracticeScoreMinePresenter implements PracticeScoreMineContract.PracticeScoreMinePresenter {
    private PracticeScoreMineContract.PracticeScoreMineView mView;
    private PracticeScoreMineModel mModel;

    public PracticeScoreMinePresenter(PracticeScoreMineContract.PracticeScoreMineView mView) {
        this.mView = mView;
        this.mModel = new PracticeScoreMineModel(this);
    }

    @Override
    public void getDetail(String volId) {
        mModel.getDetail(volId);
    }

    @Override
    public void getToken(boolean isUpload) {
        mModel.getToken(isUpload);
    }

    @Override
    public void uploadHead(String volId, String logo) {
        mModel.uploadHead(volId, logo);
    }

    @Override
    public void setDetail(PracticeVolunteerDetailBean bean) {
        mView.setDetail(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }

    @Override
    public void getTokenSuccess(UpTokenBean data, boolean isUpload) {
        mView.getTokenSuccess(data, isUpload);
    }

    @Override
    public void getTokenError(boolean isUpload) {
        mView.getTokenError(isUpload);
    }

    @Override
    public void uploadSuccess(String msg) {
        mView.uploadSuccess(msg);
    }

    @Override
    public void uploadError(String msg) {
        mView.uploadError(msg);
    }
}
